<html>

<head>
	<meta charset="UTF-8"> 
	<script type="text/javascript">

		function onHref(){
			alert("href点击事件");
		}
	</script>
    <title>href的click事件</title>
</head>

<body>
	<a href="javascript:void(0)" onclick="onHref();">click</a>
</body>

</html>
